package com.mew.game.core.common.provide;

import com.mew.common.rest.game.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;


@Component
@FeignClient(value = "mew-kernel-game")
public interface GameFeignService {

    @PostMapping(value = "/game/enter")
    @ResponseBody
    EnterRoomResponse enterRoom(@RequestBody EnterRoomRequest request);

    @GetMapping(value = "/game/exit/{uid}/{exittype}")
    @ResponseBody
    Integer exitRoom(@PathVariable("uid") long uid, @PathVariable("exittype") int exittype);

}
